From b4bff5c5b7f69ebb971a5fa4313b44e19ebdd185 Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Wed, 19 Mar 2025 18:53:56 +0100 Subject: [PATCH] gui/macOS: Constify methods in file provider socket controller Signed-off-by: Claudio Cambra --- src/gui/macOS/fileprovidersocketcontroller.cpp | 4 ++-- src/gui/macOS/fileprovidersocketcontroller.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gui/macOS/fileprovidersocketcontroller.cpp b/src/gui/macOS/fileprovidersocketcontroller.cpp index ae70f9fdb..1f9bd202b 100644 --- a/src/gui/macOS/fileprovidersocketcontroller.cpp +++ b/src/gui/macOS/fileprovidersocketcontroller.cpp @@ -162,7 +162,7 @@ void FileProviderSocketController::requestFileProviderDomainInfo() const sendMessage(requestMessage); } -void FileProviderSocketController::slotAccountStateChanged(const AccountState::State state) +void FileProviderSocketController::slotAccountStateChanged(const AccountState::State state) const { switch(state) { case AccountState::Disconnected: @@ -241,7 +241,7 @@ void FileProviderSocketController::sendAccountDetails() const sendMessage(message); } -void FileProviderSocketController::reportSyncState(const QString &receivedState) +void FileProviderSocketController::reportSyncState(const QString &receivedState) const { if (!accountState()) { qCWarning(lcFileProviderSocketController) << "No account state available to report sync state"; diff --git a/src/gui/macOS/fileprovidersocketcontroller.h b/src/gui/macOS/fileprovidersocketcontroller.h index 30fc8251a..94c3ccfb0 100644 --- a/src/gui/macOS/fileprovidersocketcontroller.h +++ b/src/gui/macOS/fileprovidersocketcontroller.h @@ -47,14 +47,14 @@ private slots: void slotSocketDestroyed(const QObject * const object); void slotReadyRead(); - void slotAccountStateChanged(const OCC::AccountState::State state); + void slotAccountStateChanged(const OCC::AccountState::State state) const; void parseReceivedLine(const QString &receivedLine); void requestFileProviderDomainInfo() const; void sendAccountDetails() const; void sendNotAuthenticated() const; - void reportSyncState(const QString &receivedState); + void reportSyncState(const QString &receivedState) const; private: QPointer _socket; -- 2.30.2